* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  color: #333;
}

.main-navigation {
  background-color: #6A1B9A;
  border-bottom: 1px solid #4A148C;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

.main-navigation .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  max-width: 1200px;
  margin: 0 auto;
  height: 70px;
}

.logo a {
  font-size: 26px;
  font-weight: bold;
  color: #F3E5F5;
  text-decoration: none;
  letter-spacing: -0.5px;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
  z-index: 1001;
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background-color: #F3E5F5;
  margin: 3px 0;
  transition: all 0.3s ease;
  border-radius: 2px;
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(7px, 7px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

.menu {
  display: flex;
  list-style: none;
  gap: 35px;
  align-items: center;
}

.menu > li {
  position: relative;
}

.menu > li > a {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 25px 0;
  color: #F3E5F5;
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  transition: color 0.3s ease;
  cursor: pointer;
}

.menu > li > a:hover {
  color: #CE93D8;
}

.menu > li > a .arrow {
  font-size: 10px;
  transition: transform 0.3s ease;
}

.menu > li.dropdown:hover > a .arrow {
  transform: rotate(180deg);
}

.submenu {
  position: absolute;
  top: 100%;
  left: 0;
  background: #7B1FA2;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  list-style: none;
  padding: 10px 0;
  margin: 0;
  min-width: 220px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  border-radius: 4px;
}

.dropdown:hover .submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.submenu li a {
  display: block;
  padding: 12px 20px;
  color: #F3E5F5;
  text-decoration: none;
  font-size: 14px;
  transition: all 0.2s ease;
}

.submenu li a:hover {
  background-color: #4A148C;
  color: #E1BEE7;
  padding-left: 25px;
}

@media (max-width: 768px) {
  .main-navigation .container {
    height: 60px;
  }
  
  .menu-toggle {
    display: flex;
  }
  
  .menu {
    display: none;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    bottom: 0;
    background: #6A1B9A;
    flex-direction: column;
    gap: 0;
    padding: 20px;
    overflow-y: auto;
    align-items: stretch;
  }
  
  .menu.active {
    display: flex;
  }
  
  .menu > li {
    border-bottom: 1px solid #4A148C;
  }
  
  .menu > li > a {
    padding: 15px 0;
    font-size: 16px;
    width: 100%;
    justify-content: space-between;
  }
  
  .menu > li > a .arrow {
    margin-left: auto;
  }
  
  .submenu {
    position: static;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    background-color: #4A148C;
    margin-top: 10px;
    border-radius: 4px;
    padding: 5px 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
  }
  
  .dropdown.active .submenu {
    max-height: 500px;
    padding: 10px 0;
  }
  
  .dropdown.active > a .arrow {
    transform: rotate(180deg);
  }
  
  .submenu li a {
    padding: 12px 15px;
  }
  
  .submenu li a:hover {
    padding-left: 20px;
    background-color: #38006B;
  }
}

@media (max-width: 480px) {
  .logo a {
    font-size: 22px;
  }
}